package com.dayuanit.dy15.atm.controller;

import com.dayuanit.dy15.atm.annotation.Component;
import com.dayuanit.dy15.atm.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Component(value = "pageController")
public class PageController {

    @RequestMapping(value = "/user/toLogin.do")
    public String toLogin(HttpServletRequest request, HttpServletResponse response) {
        System.out.println(">>>>>toLogin controller");
        return "login";
    }

    @RequestMapping(value = "/user/toIndex.do")
    public String toIndex(HttpServletRequest request, HttpServletResponse response) {
        return "index";
    }

    @RequestMapping(value = "/flow/toFlow.do")
    public String toFlow(HttpServletRequest request, HttpServletResponse response) {
        return "flow";
    }

}
